package apps.reading.db;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import core.tool.common.SystemInfo;

public class WebSourceDBTest {
	
    public static void main(String[] args) {
      ApplicationContext ctx = new FileSystemXmlApplicationContext(SystemInfo.ROOT_PATH+"WEB-INF/applicationContext.xml");
      WebSourceService webSourceService = ctx.getBean("webSourceService", WebSourceService.class);
      WebSourceBean webSourceBean=new WebSourceBean();
      webSourceBean.setId("test");
      webSourceBean.setTitle("test");
      webSourceBean.setContent("test");
      webSourceService.save(webSourceBean);
  }
}
